package com.longcai.cm.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 优惠券商品
 * </p>
 *
 * @author LBX
 * @since 2024-08-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ja_goods_coupon")
@ApiModel(value = "JaGoodsCoupon对象", description = "优惠券商品")
public class JaGoodsCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @ApiModelProperty("商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty("商品图片")
    @TableField("good_img")
    private String goodImg;

    @ApiModelProperty("商品logo")
    @TableField("good_logo")
    private String goodLogo;

    @ApiModelProperty("排序号码")
    @TableField("order_no")
    private Integer orderNo;

    @ApiModelProperty("已售数量")
    @TableField("sale_count")
    private Integer saleCount;

    @ApiModelProperty("1上架 0下架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("商品售价")
    @TableField("sale_price")
    private BigDecimal salePrice;

    @ApiModelProperty("包含优惠券数量")
    @TableField("coupon_count")
    private Integer couponCount;

    @ApiModelProperty("库存数量")
    @TableField("coupon_left_count")
    private Integer couponLeftCount;

    @ApiModelProperty("优惠券id")
    @TableField("coupon_id")
    private String couponId;

    @ApiModelProperty("商品详情")
    @TableField("good_detail")
    private String goodDetail;

    @ApiModelProperty("备注信息")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private String createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private String updateTime;

}
